package com.ytoglobal.overseas.address.platform.common.utils;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.MDC;


/**
 * <pre>
 * 名称: LogUtils
 * 描述: TODO
 * </pre>
 *
 * @author Ryan Chen
 * @since 1.0.0
 */
@Slf4j
public class LogUtils {

    private static final String MDC_MESSAGE_NAME = "message";

    public static void info(String siftingValue, String content) {
        MDC.put(MDC_MESSAGE_NAME, siftingValue);
        try {
            log.info(content);
        } finally {
            MDC.remove(MDC_MESSAGE_NAME);
        }
    }
}
